package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.Demo;
import com.jinghua.treatment.mapper.DemoMapper;
import com.jinghua.treatment.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by qifan on 2018/2/20.
 */
@Service("studentService")
public class DemoServiceImpl implements DemoService {
    @Autowired
    private DemoMapper demoMapper;

    @Override
    public List<Demo> findAllDemo() {
       return  demoMapper.selectAll();
    }
}
